package com.link_with_health.mapper;

import com.link_with_health.model.UserEntity;
import com.sun.javafx.collections.MappingChange;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
import java.util.ArrayList;

@Mapper
public interface UserMapper {
    UserEntity getUserByUserId(Long userId);
    UserEntity getUserByUsername(String username);
    UserEntity getUserByTelephone(String telephone);
    UserEntity getUserByEmail(String email);
    List<UserEntity> getUsersByStatus(Integer status);
    List<UserEntity> getUsersByUserType(Integer isDoctor);
    List<UserEntity> getAllUsers();
    int userReignByBaseInfo(UserEntity user);
    int updateUserInfo(UserEntity user);
    int deleteUserInfo(Long userId);
}
